<%@ Page Language="C#" %>

<%@ Register TagPrefix="bloget" Namespace="BlueOnionSoftware.Bloget" Assembly="Bloget" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>Example 2</title>
  <style type="text/css">
    form        { width:980px; margin:auto; }
    #content    { width: 660px; padding: 15px; float: left; }
    #sidebar    { width: 250px; padding: 5px 15px; float: right; border-left: 1px #dddfff solid; }
    #sidebar ul { padding-left: 15px; margin: 0; }
    #footer     { color: #666666; clear: both; margin: 15px; }
  </style>
</head>
<body>
  <form id="form1" runat="server">
    <div id="content">
      <bloget:BlogetBlog ID="blog" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
    </div>
    <div id="sidebar">
      <p>
        <bloget:BlogetSearch ID="search" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
      </p>
      <p>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/example2.aspx?m=login" Text="login (Hint:Bloget)" /><br />
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/example2.aspx?m=edit" Text="new post" />
      </p>
      <h4>Categories</h4>
      <bloget:BlogetCategory ID="cat" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
      <h4>Recent Posts</h4>
      <bloget:BlogetRecentPosts ID="recent" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
      <h4>Archives</h4>
      <bloget:BlogetArchive ID="archive" runat="server" DataContext="~/App_Data/SampleBlog/Blog.xml" />
    </div>
    <div id="footer">
      <p>Copyright &copy; 2007 Blue Onion Software<br />
        All rights reserved</p>
    </div>
  </form>
</body>
</html>
